package com.bw.base.db

import androidx.room.*

@Dao
interface SearchDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(search: SearchEntity):Long
    @Query("select *from search order by id desc")
    fun queryAll():List<SearchEntity>
    @Delete
    fun delete(search: SearchEntity):Int
}